package com.example.mybatisplus.controller;

import com.example.mybatisplus.entity.User;
import com.example.mybatisplus.entity.UserRole;
import com.example.mybatisplus.entity.userRolePrower;
import com.example.mybatisplus.service.Userservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.UUID;

/**
 * Created with IntelliJ IDEA.
 * User: lixiao
 * Created Date: 2020/9/16 13:30
 */
@RestController
@RequestMapping(value = "/user")
public class UserController {

    @Autowired
    Userservice userservice;

    @GetMapping(value = "/add")
    public String add(){
        return userservice.add();
    }

    @GetMapping(value = "/gerUserRole")
    public List<UserRole> gerUserRole(){
        return userservice.gerUserRole();
    }

    @GetMapping(value = "/getuserRolePrower")
    public List<userRolePrower> getuserRolePrower(){
        return userservice.getuserRolePrower();
    }

}